Guild icon
Project Sekai
🔒 UMDCTF 2023 / ✅-crypto-bulbeuler
Sutx pinned a message to this channel. 04/28/2023 7:59 PM
Avatar
@unpickled admin bot wants to collaborate 🤝
Avatar
unpickled admin bot 04/28/2023 8:32 PM
@sahuang this one might just be a fermat problem lmao
20:32
kinda skimmed but
Avatar
im doing it
20:33
looks ez
Avatar
unpickled admin bot 04/28/2023 8:33 PM
ye
20:39
ye so g^(x+y) = 1 mod p if and only if the bit is 1 (edited)
20:40
i think i can solve from here
20:40
holdon
Avatar
im doing the same thing somehow didnt get flag
20:41
weird
Avatar
@fleming wants to collaborate 🤝
Avatar
unpickled admin bot 04/28/2023 8:44 PM
UMDCTF{I_d0nt_th1nk_bulby_!s_th3_n3xt_3ul3r_tbh}
20:44
idk
20:44
worked for me
Avatar
send script
20:44
wtf
Avatar
unpickled admin bot 04/28/2023 8:45 PM
did it in console so hold on lemme clean this up
Avatar
oo sure
20:45
you can submit
20:45
on ur accnt
Avatar
unpickled admin bot 04/28/2023 8:47 PM
p = 6596997572802685744626960256235787019476434707654191935397530271983648431547 d = open("output (36).txt").read() d = d.split("\n") d.pop(0) d.pop(-1) flag = "" for x in d: gx, gy = x.split(", ") gx, gy = int(gx), int(gy) if (gx*gy)%p == 1: flag += "1" else: flag += "0" flag = int(flag,2) from Crypto.Util.number import long_to_bytes as l2b print(l2b(flag))
20:47
(for me its output (36) i really need to use folders)
20:48
output is g^x and g^y
20:48
already
20:48
yeah i see what i did wrong
20:48
i thought its x and y and do sth like g^x again lmao
20:49
i submitted on my acc
20:49
uh
20:49
lmao ok this is fine prob
20:49
eh
Avatar
whats the issue
20:49
yeah
Avatar
unpickled admin bot 04/28/2023 8:49 PM
oh was i supposed to?
Avatar
its prob better to submit on ur account
20:49
yeah
Avatar
unpickled admin bot 04/28/2023 8:49 PM
ohh
Avatar
submit on bot is also fine but better to use personal accnt
Avatar
unpickled admin bot 04/28/2023 8:49 PM
ok imma go back to afking because idk i think im using ctf to get out of hw, prob not the best idea
Avatar
loool
20:50
do /ctf solve then
Avatar
Avatar
unpickled admin bot
used /ctf solve
✅ Challenge solved.
Exported 46 message(s)